import axios from '../axios';
export default {
    //add
    addAdmins(data) {
        return axios({
            url: '/admins/addAdmins',
            method: 'post',
            data
        })
    },
    //get
    getAdmins() {
        return axios({
            url: '/admins/getAdmins',
            method: 'get',
        })
    },

    //update
    editAdmins(data) {
        return axios({
            url: '/admins/editAdmins',
            method:'post',
            data
        })
    },

    //delete
    deleteAdmins(data) {
        console.log(data);
        return axios({
            url: '/admins/deleteAdmins',
            method:'post',
            data
        })
    },

    //switch
    switchAdmins(data) {
        return axios({
            url: '/admins/switchAdmins',
            method:'post',
            data
        })
    }


}